﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Chapter19.Example04
{
    public partial class Registration : Page
    {
        public RegistrationInfo RegistrationInfo
        {
            get
            {
                return new RegistrationInfo
                    {
                        FirstName = textFirstName.Text,
                        LastName = textLastName.Text,
                        Email = textEmail.Text,
                        SelectedEvent = dropDownListEvents.SelectedValue,
                    };
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {

        }
    }
}